package com.wanmait.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 停车位表
 */
@Data
@Accessors(chain = true)
@TableName(value = "parking_spot")
public class ParkingSpot {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 停车区域id
     */
    @TableField(value = "area_id")
    private Integer areaId;

    /**
     * 车位所有者id
     */
    @TableField(value = "owner_id")
    private Integer ownerId;

    /**
     * 车位使用者id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 买的时间
     */
    @TableField(value = "buy_start_time")
    private Date buyStartTime;

    /**
     * 开始租的时间
     */
    @TableField(value = "lease_start_time")
    private Date leaseStartTime;

    /**
     * 结束租的时间
     */
    @TableField(value = "lease_end_time")
    private Date leaseEndTime;

    /**
     * 是否转租，0否1是
     */
    @TableField(value = "lease")
    private Boolean lease;

    /**
     * 租金单价
     */
    @TableField(value = "lease_price")
    private BigDecimal leasePrice;

    /**
     * 车位管理费单价
     */
    @TableField(value = "fee")
    private BigDecimal fee;

    /**
     * 创建用户id
     */
    @TableField(value = "creat_by")
    private Integer creatBy;

    /**
     * 创建时间
     */
    @TableField(value = "creat_time")
    private Date creatTime;

    /**
     * 更新用户id
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 删除标志1未删除0删除
     */
    @TableField(value = "`enable`")
    private Boolean enable;
}